import { useState, useEffect } from 'react'
import { useNavigate } from 'react-router-dom'
import { Button } from 'tdesign-react'
import './index.less'

const NotFound = (props: any) => {

  const navigate = useNavigate()

  const [state, setState] = useState({})

  useEffect(() => {

  }, [state])

  const goBack = () => {
    navigate(-1)
  }

  return <div className='not-found'>
    <Button className='go-back' onClick={goBack}>返回上一页</Button>
    <span className='number'>404</span>页面丢失了，看看别的吧~</div>
}

export default NotFound
